package com.fzshang.shopping.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-22
 */
@ToString
@ApiModel(value="GoodSize对象", description="")
public class GoodSize extends Model<GoodSize> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("good_id")
    private Long goodId;

    @TableField("size_id")
    private String sizeId;

    @TableField("color")
    private String color;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }
    public String getSizeId() {
        return sizeId;
    }

    public void setSizeId(String sizeId) {
        this.sizeId = sizeId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodSize{" +
            "id=" + id +
            ", goodId=" + goodId +
            ", sizeId=" + sizeId +
        "}";
    }
}
